package com.hzcc.hzccblog.common.enums;

import com.hzcc.hzccblog.common.Result;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author 早睡蛋
 * @Date 2022/7/15 21:01:32
 * @Desc:管理员枚举类
 */
@Getter
@AllArgsConstructor
public enum AdminEnums {

    AVATOR_URL(200,"ok"),
    ARTICLE_COUNT(200,"ok"),

    ;

    AdminEnums(int code, String message) {
        this.result =  Result.defaultResultResponse();
        result.setCode(code);
        result.setMessage(message);
    }

    public int getCode(){
        return result.getCode();
    }

    public String getMessage(){
        return result.getMessage();
    }

    public Result getResult() {
        return result;
    }


    private final Result result;
}
